import http from '@/utils/https'

// 一级分类列表
export const getCategoryTop = () => {
  return http({
    url: '/category/top'
  })
}
// 二级类目
export const getCategory = (id) => {
  return http({
    url: '/category?id=' + id
  })
}